home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SYMLINK(3) MINTLIB LIBRARY FUNCTIONS SYMLINK(3)
-
-
- N✓NA✓AM✓ME✓E
- symlink - make symbolic link to a file
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <support.h>
-
- int symlink(const char *old, const char *new);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- A symbolic link new is created to old (new is the name of
- the file created, old is the string used in creating the
- symbolic link). Either name may be an arbitrary path name;
- the files need not be on the same file system.
-
- The file that the symbolic link points to is used when an
- open operation is performed on the link. A stat on a sym-
- bolic link returns the linked-to file, while an lstat
- returns information about the link itself. This can lead
- to suprising results when a symbolic link is made to a
- directory. To avoid confusion in programs, the readlink
- call can be used to read the contents of a symbolic link.
-
- R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
- symlink returns:
-
- 0 on success -1 on failure; errno is set to indicate the
- error
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- l✓li✓in✓nk✓k(✓(3✓3)✓),✓, r✓re✓ea✓ad✓dl✓li✓in✓nk✓k(✓(3✓3)✓),✓, u✓un✓nl✓li✓in✓nk✓k(✓(3✓3)✓),✓, F✓Fs✓sy✓ym✓ml✓li✓in✓nk✓k(✓(2✓2)✓)
-
- N✓NO✓OT✓TE✓ES✓S
- MS-DOS (TOS) file-systems do not support symbolic links.
-
- The file or directory linked to (old) need not exist.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-